##
##  $Header: /pub/cvsroot/mydns/doc/texi/en/Makefile.am,v 1.13 2002/11/15 10:02:55 bboy Exp $
##

EXTRA_DIST	=	\
	configuration.texi	\
	database.texi			\
	fdl.texi					\
	installation.texi		\
	introduction.texi		\
	mydns.texi				\
	references.texi		\
	server.texi				\
	title.texi				\
	troubleshooting.texi	\
	utilities.texi

RUN			=	$(SHELL) $(top_srcdir)/missing --run
MAKE_INFO	=	$(SHELL) ../makeinfo

create-info: $(EXTRA_DIST)
	$(MAKE_INFO) -I .. -o mydns.info mydns.texi
	@if test -f mydns.info; then echo "*** Created: mydns.info"; fi

install-info: create-info
	@if test -f mydns.info; then cp mydns.info ..; fi

mydns.dvi: $(EXTRA_DIST)
	$(RUN) texi2dvi -q -I .. mydns.texi

create-ps: mydns.dvi
	$(RUN) dvips -q -t letter mydns.dvi -o mydns_letter.ps
	@if test -f mydns_letter.ps; then echo "*** Created: mydns_letter.ps"; fi
	$(RUN) dvips -q -t a4 mydns.dvi -o mydns_a4.ps
	@if test -f mydns_a4.ps; then echo "*** Created: mydns_a4.ps"; fi

install-ps: create-ps
	@if test -f mydns_letter.ps; then cp mydns_letter.ps ..; fi
	@if test -f mydns_a4.ps; then cp mydns_a4.ps ..; fi

create-pdf: $(EXTRA_DIST)
	$(RUN) texi2dvi -b --pdf -I .. mydns.texi
	@if test -f mydns.pdf; then echo "*** Created: mydns.pdf"; fi

install-pdf: create-pdf
	@cp mydns.pdf ..

create-html: $(EXTRA_DIST)
	$(MAKE_INFO) -I .. --html -o html mydns.texi

install-html: create-html
	if test -d ../html.orig; then rm -rf ../html.orig; fi
	if test -d ../html; then mv -f ../html ../html.orig; fi
	mv html ..

clean:
	rm -f mydns_a4.ps mydns.aux mydns.cp mydns.cps mydns.dvi mydns.fn mydns.ky mydns.info \
		mydns_letter.ps mydns.log mydns.pg mydns.toc mydns.tp mydns.vr mydns.vrs mydns.pdf
	rm -rf html

install-info-am:

all:

## vi:set ts=3:
